<template>
  <div class="tabs-main">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="基本信息" name="first">
        <FirstPagesBase></FirstPagesBase>
      </el-tab-pane>
      <el-tab-pane label="诊断信息" name="second">
        <Diagnosis></Diagnosis>
      </el-tab-pane>
      <el-tab-pane label="手术信息" name="third">
        <SurgeryForm> </SurgeryForm>
      </el-tab-pane>
      <el-tab-pane label="费用信息" name="fourth">
        <CostForm></CostForm>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'
import FirstPagesBase from './components/FirstPagesBase.vue'
import Diagnosis from './components/Diagnosis.vue'
import SurgeryForm from './components/SurgeryForm.vue'
import CostForm from './components/CostForm.vue'

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>

<style>
.tabs-main {
  height: 100%;
  overflow: auto;
  /* background-color: red; */
}
</style>
